package logic;

public class Rail {
	private String city1, city2, fxID;
	private int length;
	private int railColor; // farben der strecke ; -1 strecke belegt
	private int userColor; // -1 nicht belegt

	public Rail(String city1, String city2, String fxID, int length, int color) {
		this.city1 = city1;
		this.city2 = city2;
		this.fxID = fxID;
		this.length = length;
		this.railColor = color;
		userColor = -1;
	}

	public String getFxID() {
		return this.fxID;
	}

	public String[] getCitys() {
		return new String[] { city1, city2 };
	}

	public int getlength() {
		return this.length;
	}

	public int getcolor() {
		return railColor;
	}

	public int getUserColor() {
		return userColor;
	}

	public void setColor(int color) {
		this.railColor = color;
	}

	public void setUserColor(int userColor) {
		this.userColor = userColor;
	}
}
